<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/23
  Time: 23:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>展示界面</title>
    <style>
        .false{
            color: red;
        }
        .true{
            color: #4cae4c;
        }
    </style>
</head>
<body>
<c:choose>
    <c:when test="${sessionScope.userNameTrue}">
        <h1 class="true">欢迎你：${sessionScope.username}</h1>
        <c:remove var="username" scope="session"/>
        <c:remove var="userNameTrue" scope="session"/>
    </c:when>
    <c:when test="${sessionScope.passwdWorn}">
        <h1 class="false">有这个人但是密码不对</h1>
        <c:remove var="passwdWorn" scope="session"/>
    </c:when>
    <c:otherwise>
        <h1 class="false">就没有这个人！</h1>
    </c:otherwise>
</c:choose>
<a href="http://localhost:80/JDBCLogin/Login.jsp">返回首页</a>
</body>
</html>
